package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DishService extends IService<Dish> {
    //添加菜品附带口味
    void saveWithFlavor(DishDto dishDto);

    //根据id回显数据
    DishDto getByIdWithFlavor(Long id);

    //修改
    void updateWithFlavor(DishDto dishDto);

    //对菜品批量或者是单个进行停售或者是启售
    void updateBatchStatus(Integer status, List<Long> ids);

    //菜品批量删除/单个删除
    boolean deleteDish(List<Long> ids);

    //根据传过来的id批量或者是单个的删除菜品
  void deleteByIds(List<Long> ids);
}
